/**
*安全过滤器
*/
class SecurityFilters {
   def filters = {
       loginCheck(controller:'(user|img|dog|dogHouse)', action:'*') {
           before = {
              if(!session.user && !actionName.equals('login')) {
                  redirect(controller:'user',action:'login')
                  return false
               }
           }
       }
   }
}